/*
 * Bayesian.cpp
 *
 *  Created on: Apr 11, 2010
 *      Author: Soheil Damangir
 */

#include "BinaryBayesian.h"
#include "GaussianModel.h"
#include <iostream>
#include "log.h"
using kthrobot::Log;
namespace Group5 {

BinaryBayesian::BinaryBayesian(const GaussianModel&positive_model,
    const GaussianModel&negative_model) :
  pos(positive_model), neg(negative_model) {
  dim = pos.get_dim();
}
BinaryBayesian::BinaryBayesian(std::istream &is) :
  pos(is), neg(is) {
  dim = pos.get_dim();
}
int BinaryBayesian::classfiy(const int*P) {
  return neg.confidence(P) - pos.confidence(P);
}

BinaryBayesian::~BinaryBayesian() {
}
}
